SmartPay\Framework\Database\Eloquent\Relation\BelongsToMany B

Total Complexity 87
Dependencies 4
Dependents 1
Total lines 519
Lines of code 324
Logical lines of code 181
Comment lines 0
Methods 43
Properties 6

Methods 43

Method Rating Maintainability Complexity Lines of code
paginate()
S
54 5 18
attachNew()
S
60 5 12
sync()
S
54 4 20
setTimestampsOnAttach()
S
64 4 10
wherePivot()
S
60 3 13
match()
S
62 3 11
withTimestamps()
S
71 3 6
cleanPivotAttributes()
S
63 3 10
detach()
S
63 3 10
formatSyncList()
S
64 3 10
getRelationCountQueryForSelfJoin()
S
58 1 16
addConstraints()
S
73 2 6
performJoin()
S
67 2 7
getRelationCountQuery()
S
64 2 9
initRelation()
S
71 2 6
withPivot()
S
72 2 5
first()
S
74 2 4
firstOrFail()
S
64 2 9
get()
S
66 2 9
addSelect()
S
68 2 7
getAliasedPivotColumns()
S
66 2 8
hydratePivotRelation()
S
70 2 6
buildDictionary()
S
67 2 8
attach()
S
71 2 5
createAttachRecords()
S
63 2 10
getAttachId()
S
71 2 6
createAttachRecord()
S
67 2 8
newPivotQuery()
S
68 2 7
updateExistingPivot()
S
68 2 7
__construct()
S
68 1 7
getRelationCountHash()
S
79 1 3
setWhere()
S
72 1 5
addEagerConstraints()
S
79 1 3
getForeignKey()
S
80 1 3
getOtherKey()
S
80 1 3
orWherePivot()
S
78 1 3
getResults()
S
81 1 3
newExistingPivot()
S
79 1 3
newPivot()
S
66 1 9
newPivotStatement()
S
80 1 3
attacher()
S
71 1 5
getPivotOtherKeys()
S
66 1 8
newPivotStatementForId()
S
79 1 3